﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcForum.Net.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%
        var _forum = ViewData["ForumDetail"] as Forum;

        if (_forum != null)
        {
%>
    <%=Html.Title("{0} - {1}", _forum.ForumName,ForumContext.Configuration.ForumName)%>
    <%=Html.Keywords("{0}, {1}", _forum.Keywords, _forum.ForumName)%>
    <%=Html.Description(_forum.Description)%>
    <%
        }%>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
       
        Html.RenderPartial("LogOn");

        Html.RenderPartial("Navigation");

        Html.RenderPartial("ForumList", ViewData["Forum"]);

        var _forum = ViewData["ForumDetail"] as Forum;
        if (_forum != null && _forum.ParentId == 0)
            Html.RenderPartial("ForumKeys");
        else
            Html.RenderPartial("Topic", ViewData["Topics"]);

        %>
</asp:Content>
